﻿using System;
using System.Collections.Generic;
using System.Text;
using SqlSugar;

namespace YL.Core.Entity
{
    /// <summary>
    /// 
    /// </summary>
    [SugarTable("whr_user")]
    public partial class Whr_user
    {
        public Whr_user() 
        {
        }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:False
        /// </summary>
        [SugarColumn(ColumnName = "id", IsPrimaryKey = true)]
        public int UserId { get; set; }

        /// <summary>
        /// 
        /// </summary>

        [SugarColumn(ColumnName = "nickname")]
        public string Nickname { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable: true
        /// </summary>
        public string Mobile { set; get; }

        [SugarColumn(ColumnName = "password")]
        public string Password { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable: true
        /// </summary>
        [SugarColumn(ColumnName = "real_name")]
        public string RealName { get; set; }

        [SugarColumn(ColumnName = "login_ip")]
        public string LoginIp { get; set; }

        [SugarColumn(ColumnName = "login_times")]
        public int? LoginTime { get; set; }

        [SugarColumn(ColumnName = "login_time")]
        public int LoginDateTime { get; set; }

        [SugarColumn(ColumnName = "sex")]
        public byte? Sex { get; set; }

        [SugarColumn(ColumnName = "avatar")]
        public string Avatar { get; set; }

        [SugarColumn(ColumnName = "create_at")]
        public DateTime? CreateAt { get; set; } = DateTime.Now;

        [SugarColumn(ColumnName = "lat")]
        public string Latitude { get; set; }

        [SugarColumn(ColumnName = "lng")]
        public string Longitude { get; set; }     
    }
}
